<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
		<title>Yming博客系统</title>
		<link rel="stylesheet" type="text/css" href="{:__TMPLPUB__}/Css/style.css"/>
		<script type="text/javascript" src="{:__TMPLPUB__}/Js/jquery.js"></script>
		<script type="text/javascript" src="{:__TMPLPUB__}/Js/slide.js"></script>
		<script type="text/javascript" src="{:__TMPLPUB__}/Js/check.js"></script>
	</head>
	<body>
		<div class="container">
			<table width="757" cellspacing="0" cellpadding="0" border="0" align="center">
				<tr align="right" valign="top">

					<td height="149" background="{:__TMPLPUB__}/Images/F_head.jpg" colspan="2">
							{if $GLOBALS['___login___']!=false}
							<div id="head">
								&nbsp;
							</div><!--/head-->
									<ul id="menu">
										<li class="level1" style="width:200px;"><a href="{:Dyhb::U('index/index')}">欢迎您:{$GLOBALS['___login___']['regname']}</a></li>
										<li class="level1"><a href="{:Dyhb::U('index/index')}">博客首页</a></li>
										<li class="level1"><a href="{:Dyhb::U('article/xlist')}">文章管理</a>
											<ul>
												<li><a href="{:Dyhb::U('article/add')}">添加文章</a></li>
												<li><a href="{:Dyhb::U('article/xlist')}">我的文章</a></li>
											</ul>
										</li>
										<li class="level1"><a>图片管理</a>
											<ul>
												<li><a>2</a></li>
												<li><a>2</a></li>
												<li><a>2</a></li>
												<li><a>2</a></li>
											</ul>
										</li>
										<li class="level1"><a>好友管理</a>
											<ul>
												<li><a>3</a></li>
												<li><a>3</a></li>
												<li><a>3</a></li>
												<li><a>3</a></li>
											</ul>
										</li>
										<li class="level1"><a href="{:Dyhb::U('user/logout')}">退出登录</a></li>
									</ul>
							{d*else}
							<div id="head" style="float:right;">
								<a href="{:Dyhb::U('index/index')}">首页</a>
								<a href="{:Dyhb::U('article/add')}">我的博客</a>
								<a href="{:Dyhb::U('user/register')}">博客注册</a>
							</div><!--/head-->
							<ul id="menu">
								<li class="level1" style="width:200px;"><a href="{:Dyhb::U('index/index')}">博客首页</a></li>
								<li class="level1"><a>下载</a>
									<ul>
										<li><a>博客源码</a></li>
									</ul>
								</li>
							</ul>
							{/if}
					</td>
				</tr>
				<!--/header-->
				<tr>
					<td height="501" background="{:__TMPLPUB__}/Images/bg.jpg"  class="label_vtl"  >
						<div style="margin:20px 10% 0px 10%;" class="_table">
							
							<table width="100%" border="1" cellspacing="0" cellpadding="0">
								<tr >
									<td class="left h1 font_bold">
										我的文章
									</td>
								</tr>
								<tr>
									<td class="left">
										<if condition="!empty($article_list)">
											<foreach for=article_list>
												<div class="blogcontent">
													<div class="t">
														<a href="{:Dyhb::U('article/show?id='.$value->article_id)}" style="color:#27408B;font-size:14px;">{$value:article_title}</a>
													</div>
													<p id="date">{$value:article_createdate}
													{$value:article_createdate|strtotime|date="l",**}</p>
													<div class="cont">
															{$TheController->toHtml($value:article_content)|G+subString=0,250}
													</div>
													<div align="right">
														{if $GLOBALS['___login___']!=false}
															<a href="{:Dyhb::U('article/deleteArt?id='.$value->article_id)}">删除</a>
														{/if}
														<a href="{:Dyhb::U('article/show?id='.$value->article_id)}">评论({$value:article_comments})</a>
														<a href="{:Dyhb::U('article/show?id='.$value->article_id)}">浏览({$value:article_scans})</a>
													</div>
												</div><!--/blogcontent-->
											</foreach>
											<div id="page">{$oPage->show()}</div>
										<else />	<div class="cont">你还没有发表文章</div>
										</if>
									</td>
								</tr>
							</table>
							
						</div><!--/_table-->
					</td>
				</tr>
			</table>
		</div><!--/container-->
	</body>
</html>
